package com.lanou.sinasports.beans;

import java.util.List;

/**
 * Created by dllo on 16/1/21.
 */
public class GsonFootball {


    /**
     * status : {"code":0,"msg":"succ"}
     * data : [{"rank":"1","teamid":"130","count":"773098","tname_cn":"巴塞罗那","logo":"http://www.sinaimg.cn/lf/sports/logo85/130.png","home_team":false},{"rank":"2","teamid":"157","count":"490052","tname_cn":"皇家马德里","logo":"http://www.sinaimg.cn/lf/sports/logo85/157.png","home_team":false},{"rank":"3","teamid":"5065","count":"437932","tname_cn":"广州恒大","logo":"http://www.sinaimg.cn/lf/sports/logo85/5065.png","home_team":false},{"rank":"4","teamid":"52","count":"247086","tname_cn":"曼联","logo":"http://www.sinaimg.cn/lf/sports/logo85/52.png","home_team":false}]
     */

    private ResultEntity result;

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public ResultEntity getResult() {
        return result;
    }

    public static class ResultEntity {
        /**
         * code : 0
         * msg : succ
         */

        private StatusEntity status;
        /**
         * rank : 1
         * teamid : 130
         * count : 773098
         * tname_cn : 巴塞罗那
         * logo : http://www.sinaimg.cn/lf/sports/logo85/130.png
         * home_team : false
         */

        private List<DataEntity> data;

        public void setStatus(StatusEntity status) {
            this.status = status;
        }

        public void setData(List<DataEntity> data) {
            this.data = data;
        }

        public StatusEntity getStatus() {
            return status;
        }

        public List<DataEntity> getData() {
            return data;
        }

        public static class StatusEntity {
            private int code;
            private String msg;

            public void setCode(int code) {
                this.code = code;
            }

            public void setMsg(String msg) {
                this.msg = msg;
            }

            public int getCode() {
                return code;
            }

            public String getMsg() {
                return msg;
            }
        }

        public static class DataEntity {
            private String rank;
            private String teamid;
            private String count;
            private String tname_cn;
            private String logo;
            private boolean home_team;

            public void setRank(String rank) {
                this.rank = rank;
            }

            public void setTeamid(String teamid) {
                this.teamid = teamid;
            }

            public void setCount(String count) {
                this.count = count;
            }

            public void setTname_cn(String tname_cn) {
                this.tname_cn = tname_cn;
            }

            public void setLogo(String logo) {
                this.logo = logo;
            }

            public void setHome_team(boolean home_team) {
                this.home_team = home_team;
            }

            public String getRank() {
                return rank;
            }

            public String getTeamid() {
                return teamid;
            }

            public String getCount() {
                return count;
            }

            public String getTname_cn() {
                return tname_cn;
            }

            public String getLogo() {
                return logo;
            }

            public boolean isHome_team() {
                return home_team;
            }
        }
    }
}
